package com.mode.single;


public class Single {

    private static Single single = null;
    private static Object lock = new Object();

    public static Single getInstance() {
        if (single == null) {
            synchronized (lock) {
                if (single == null) {
                    single = new Single();
                }
            }
        }
        return single;
    }

}
